import React,{Fragment} from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter,Route} from 'react-router-dom';
import routes from '../routes';
import Header from '../components/Header';
import {getClientStore} from '../store';
import {Provider} from 'react-redux';
import {matchRoutes,renderRoutes} from 'react-router-config';
ReactDOM.hydrate(
	<Provider store={getClientStore()}>
	  <BrowserRouter>
		  {renderRoutes(routes)}
		</BrowserRouter>
	</Provider>
	,document.querySelector('#root'));